package com.cy.sca.api.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(value="sca-notice",contextId = "remoteNoticeService")
//sca-notice表示调用这个服务下的资源
public interface RemoteNoticeService {

    @PostMapping("/notice/sms/send")
    void sendMsg(@RequestBody Map<String,Object> msg); //发送手机端验证码code

    @PostMapping("/notice/log/record")
    void doLoginfo(Map<String,Object> logInfoMap); //@RequestBody注解可以不用写，因为数据是方法调用直接传过来的

}
